package com.naiterui.ehp.bs.cms.modules.base.vo;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.naiterui.ehp.bs.cms.common.json.Dict;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author gaoliangliang
 * @date 2021/2/24 下午3:33
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "医院列表VO", description = "医院列表VO")
public class HospitalPageVO {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "城市name")
    private String name;

    @NotNull(message = "城市id不能为空")
    @ApiModelProperty(value = "城市ID")
    private Integer cityId;

    @NotNull(message = "医院地址不能为空")
    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "医院等级")
    private String level;

    @NotNull(message = "医院联系方式不能为空")
    @ApiModelProperty(value = "医院联系方式")
    private String phone;

    @ApiModelProperty(value = "特色专科")
    private String specDepartment;

    @ApiModelProperty(value = "主要设备")
    private String equipment;

    @ApiModelProperty(value = "网址")
    private String website;

    @ApiModelProperty(value = "乘车路线")
    private String busRoute;

    @ApiModelProperty(value = "等级类型")
    @Dict(type = "hospital_level_type")
    private Integer levelType;

    @NotNull(message = "医院状态不能为空")
    @ApiModelProperty(value = "屏蔽状态 0：正常；1：屏蔽")
    @Dict(type = "hospital_hide_status")
    private Integer hide;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

}
